/*
 * @Author: Hp_lucky 1063512385@qq.com
 * @Date: 2024-08-28 11:36:47
 * @LastEditors: Hp_lucky 1063512385@qq.com
 * @LastEditTime: 2024-10-24 15:51:51
 * @FilePath: \cocos_frame\assets\script\src\Basic\Config\BaseEnum.ts
 */
/* eslint-disable */
export enum LoadingBundle {
  /** 开始游戏之后自动加载的资源包 */
  BaseBundle = 'resources',
  /** 公共资源包 */
  PublicBundle = 'public',
  /** 主玩法资源包 */
  MainGameBundle = 'maingame',
  /** 其他玩法资源包 */
  GameBundle = 'game',
  /** 数据资源包 */
  SceneBundle = 'scene',
}

export enum AssetPath {
  /** 动画路径 */
  Animation = 'animation',
  /** 音效 */
  Audio = 'audio',
  /** 字体资源 */
  Fonts = 'fonts',
  /** 地图资源 */
  Map = 'map',
  /** 粒子资源 */
  Particle = 'particle',
  /** 骨骼资源 */
  Spine = 'spine',
  /** 动态图片资源 */
  Sprite = 'sprite',
  /** 图集资源 */
  SpriteAtlas = 'spriteAtlas',
  /** ui资源 */
  Panel = 'panel',
}

export namespace BaseEventType {
  /** 通过loading打开界面 */
  export const GAME_SHOW_PANEL: string = 'GAME_SHOW_PANEL';
  /** 不通过loading打开界面 */
  export const GAME_SHOW_PANEL_NOW: string = 'GAME_SHOW_PANEL_NOW';
  /** 待会打开界面，冒泡 */
  export const GAME_SHOW_PANEL_LATER: string = 'GAME_SHOW_PANEL_LATER';
  /** 直接显示界面 */
  export const GAME_SHOW_PANEL_NODE: string = 'GAME_SHOW_PANEL_NODE';
  /** 关闭受LayerManager控制的界面 */
  export const GAME_CLOSE_PANEL: string = 'GAME_CLOSE_PANEL_NODE';
  /** 关闭单选菜单控制界面 */
  export const GAME_CLOSE_MENU_PANEL: string = 'GAME_CLOSE_MENU_PANEL';

  /** 引导事件 */
  export const GAME_CHECK_GUIDE: string = 'GAME_CHECK_GUIDE';

  /** 下拉列表过滤 */
  export const GAME_DROPDOWN_CHANGE: string = 'GAME_DROPDOWN_CHANGE';
  /** 广告事件 */
  export const GAME_AD_FINISH: string = 'GAME_AD_FINISH';

  /** 分享事件 */
  export const GAME_SHARE_FINISH: string = 'GAME_SHARE_FINISH';
}

export enum LayerType {
  /** 最小值不进行设置，只用来比较 */
  MIN,
  /** 主玩法 */
  MainLayer = 2,
  /** 全屏玩法 */
  PanelLayer = 4,
  /** 菜单 */
  MenuLayer = 8,
  /** 窗口玩法 */
  DialogLayer = 16,
  /** 功能层 */
  topLayer = 32,
  /** 提示层 */
  TipsLayer = 64,
  /** 引导 */
  GuideLayer = 128,
  /** 加载层 */
  LoadingLayer = 256,
  MAX,
}

export enum RepelType {
  /** 不互斥 */
  None = 0,
  /** 同层互斥 */
  Self = 1,
  /** 主玩法 */
  MainLayer = 2,
  /** 菜单 */
  MenuLayer = 4,
  /** 全屏玩法 */
  PanelLayer = 8,
  /** 窗口玩法 */
  DialogLayer = 16,
  /** 功能层 */
  topLayer = 32,
  /** 提示 */
  TipsLayer = 64,
  /** 和所有互斥 */
  Only_Me = 127,
}

export enum SoundCode {
  // Bgm = 'resources/audio/BGM',
  BtnClick = 'resources/audio/BtnClick',
  Monster = 'resources/audio/Monster',
  Tree = 'resources/audio/Tree',
}

export enum ShareType {
  Energy,
}

export enum BasePrefab {
  ui_controller = 'resources/base/Controler',
}

export enum GameLayer {
  Game_Main = 1,
  UI_2D = 1 << 25,
  DEFAULT = 1 << 30,
}

export const GameKey = 'WaterSort';

export enum LocalStorage {
  PlayerParams = `PlayerParams_${GameKey}`,
  GlobalParams = `GlobalParams_${GameKey}`,
  GameParams = `GameParams_${GameKey}`,
  BattleParam = `BattleParam_${GameKey}`,
  ResParam = `ResParam_${GameKey}`,
  DialogConfigParams = `dialogConfigParam_${GameKey}`,
  SymbolGuide = `SymbolGuide_${GameKey}`,
  RelicGuide = `RelicGuide_${GameKey}`,
  HeroesGuide = `HeroesGuide_${GameKey}`,
  HeroesParams = `HeroesParams_${GameKey}`,
  ClimbParams = `ClimbParams_${GameKey}`,
  GameGuide = `GameGuide_${GameKey}`,
  MonsterGuide = `MonsterGuide_${GameKey}`,
  MonsterGuideState = `MonsterGuideState_${GameKey}`,
  Version = `Version_${GameKey}`,
  FeedState = `FeedState_${GameKey}`,
  HttpConfig = `HttpConfig_${GameKey}`,
  SoulTree = `SoulTree_${GameKey}`,
  LevelData = `LevelData_${GameKey}`,
}
